package com.infocollect.project.grant.domain;

import com.infocollect.framework.aspectj.lang.annotation.Excel;
import com.infocollect.framework.web.domain.BaseEntity;
import io.swagger.models.auth.In;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 派出单位用户对象 gr_user_company
 *
 * @author infocollect
 * @date 2022-06-12
 */
public class GrUserCompany extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 用户ID */
//    @Excel(name = "用户ID")
    private Long userId;

    /** 项目ID */
//    @Excel(name = "项目ID")
    private Long grantId;

    /** 派出单位ID */
//    @Excel(name = "派出单位ID")
    private Long companyId;
    @Excel(name = "用户登陆名")
    private String userName;
    @Excel(name = "用户姓名")
    private String nickName;
    @Excel(name = "项目名称")
    private String grantName;
    @Excel(name = "派出单位")
    private String comName;
    @Excel(name = "用户级别")
    private Integer lvl;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setGrantId(Long grantId)
    {
        this.grantId = grantId;
    }

    public Long getGrantId()
    {
        return grantId;
    }
    public void setCompanyId(Long companyId)
    {
        this.companyId = companyId;
    }

    public Long getCompanyId()
    {
        return companyId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getGrantName() {
        return grantName;
    }

    public void setGrantName(String grantName) {
        this.grantName = grantName;
    }

    public String getComName() {
        return comName;
    }

    public void setComName(String comName) {
        this.comName = comName;
    }

    public Integer getLvl() {
        return lvl;
    }

    public void setLvl(Integer lvl) {
        this.lvl = lvl;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("grantId", getGrantId())
            .append("companyId", getCompanyId())
            .toString();
    }
}
